package com.tuling.llmlangchain4j.tools;

import dev.langchain4j.agent.tool.Tool;
import org.springframework.stereotype.Component;

@Component
public class CalculateComputeTools {

    @Tool
    public double calculateSum(double param1,double param2 ) {
        System.out.println("调用计算总和");
        return param1+param2;
    }

    @Tool
    public double spuareRoot(double param) {
        System.out.println("调用平方根");
        return Math.sqrt(param);
    }
}
